Starts cutscene cs from its first step: freezes ordinary gameplay (Step/Alarm/Button/Movement/Collision), leaves the camera/HUD/particles running, and plays every authored step in order - camera pans, pauses, dialogue lines, entity spawns/moves/destroys, and particle starts/bursts/stops. Returns false and starts nothing if a scene is already playing, or if cs is not a real cutscene.
cutscene_start(cs) -> bool| Name | Type |
|---|---|
cs | cutscene |
bool
Starts cutscene cs playing from its first step: freezes ordinary gameplay (Step, Alarm, Button, Movement and Collision dispatch, project-wide) while the camera, Draw, particles and audio all keep running exactly as they already do during a room transition, and plays every authored step in order - camera pans, pauses, dialogue lines, entity spawns/moves/destroys, particle starts/bursts/stops, project background creates/moves/destroys, and camera shakes. Returns false and starts nothing if a scene is already playing, or if cs does not name a real cutscene.
This is the same freeze a room transition already uses, not a new mechanism: while cutscene_active() reads true, an enemy stops chasing, the player stops moving or firing, and no Alarm or Button event anywhere in the project fires - but the frame itself keeps running. The camera still eases (or, during an authored PAN step, is driven directly by the scene), particles already running keep animating, and a project's own HUD object - whose drawing was never gated on gameplay pausing either - keeps drawing over the frozen world for free.
Calling this while one cutscene is already active does nothing at all - it returns false, and the running scene is untouched. This is deliberate: a badly-timed second call (a trigger re-firing, two systems racing to start something) can never interrupt what is already playing. To replace a running scene with a different one on purpose, say so explicitly:
cutscene_stop();
cutscene_start(cs_doc_intro);Two calls, visibly deliberate, rather than one call that would mean two different things depending on hidden state.
cutscene_start(cs_doc_intro);Starts cs_doc_intro playing - the usual shape is to call this once, from wherever the moment arrives (an entry trigger's own Collision event, a boss's Destroy event, a scripted story beat), never from every frame of a Step event.
if (! cutscene_start(cs_doc_intro)) {
// a scene was already playing - this call changed nothing.
}The return value is false exactly when nothing happened - either a scene was already active, or cs was not a real cutscene. Checking it is optional (most projects only ever call this from a place that already knows no scene is running), but it is there for a project that wants to know.
One scene plays at a time, project-wide - see docs/CUTSCENES_BLUEPRINT.md section 6.3 for what happens if you call cutscene_start while one is already running, and section 6.2 for how the camera is automatically handed back to whatever it was following (or not) once a scene ends. While a scene plays, ordinary Step/Alarm/Button/Movement/Collision dispatch is frozen project-wide - Draw, the camera, audio, tile animation and particles all keep running exactly as they already do during a room transition (section 6.1). A zero-step scene "starts and instantly finishes" in the same call - it still returns true, but cutscene_active() never reads true for it, not even for one frame, since there is nothing to freeze gameplay for.